<% include head.ejs%>
<body>
    <header>
        <div class="topbar">
            <!--<a href="#" class="settings fl"></a>-->
            <!--<a href="#" class="megs fr">-->
                <!--<i class="megs-new"></i>-->
            <!--</a>-->
            <!--<a href="#" class="help fr"> </a>-->
            <span>个人中心</span>
        </div><!-- topbar end -->
        <div class="myinfo clearfix">
            <a href="#" class="avt">
                <img src="<%= user.headimg%>">
            </a>
            <div class="info">
                <h1 class="name"><%= user.name%></h1>
                <span class="type"><%= user.userLevel%></span>
            </div>
        </div>
    </header>
    <div class="myDeal">
        <div class="tit">
            我的交易
        </div>
        <ul class="row clearfix">
            <li class="col-4-1">
                <a href="/order/preshop">
                    <% if (ordsum.type1 >0){%><i class="tips"><%= ordsum.type1%></i><%}%>
                    <img src="/images/gwc.png">
                    <span>购物车</span>
                </a>
            </li>
            <li class="col-4-1">
                <a href="/order/payOrder">
                    <% if (ordsum.type2 >0){%><i class="tips"><%= ordsum.type2%></i><%}%>
                    <img src="/images/df.png">
                    <span>待支付</span>
                </a>
            </li>
            <li class="col-4-1">
                <a href="/usr/getUserPd?typeId=3">
                    <% if (ordsum.type3 >0){%><i class="tips"><%= ordsum.type3%></i><%}%>
                    <img src="/images/dfh.png">
                    <span>待发货</span>
                </a>
            </li>
            <li class="col-4-1">
                <a href="/usr/getUserPd?typeId=4">
                    <% if (ordsum.type4 >0){%><i class="tips"><%= ordsum.type4%></i><%}%>
                    <img src="/images/yfh.png">
                    <span>已发货</span>
                </a>
            </li>
        </ul>
    </div>

    <div class="funlist">
        <li>
            <a href="/depos/deposInfo" class="myYe">
                可用余额
                <span><%= commTotal/100%>元</span>
                <i class="icon-angle-right"></i>
            </a>
        </li>
        <li>
            <a href="/comm/commInfo" class="myYj">
                我的佣金
                <i class="icon-angle-right"></i>
            </a>
        </li>
        <li>
            <a href="/share/sharePage?openid=<%= user.openid %>" class="myShare">
                分享
                <span>把分享当成一种乐趣</span>
                <i class="icon-angle-right"></i>
            </a>
        </li>
        <li>
            <a href="/order/maddress" class="userSafe">
                地址管理
                <i class="icon-angle-right"></i>
            </a>
        </li>
        <li>
            <a href="/coupon/couponInfo" class="coupon">
                我的优惠券
                <i class="icon-angle-right"></i>
            </a>
        </li>
    </div>
    <div class="b-menu">
        <%include footer.ejs%>
    </div>
</body>
</html>